import request from "../utils/request";
type API<T=any> = (...args:T[])=>Promise<any>
//登录接口
export const loginAPi:API<{phone:string;password:string}> = (body)=>{
    return request("/user/login",{
        method:'post',
        body
    })
}

//短信登录验证码

export const shortMsgApi:API<{phone:string}> = (body)=>{
    return request(`/user/verifcode?`+body.phone,{
        method:'post',
        body
    })
}

